package cn.dlc.com.message;

import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.stereotype.Component;

@Component
@EnableBinding(Sink.class)
public class MsgReceive {

    @StreamListener(Sink.INPUT)
    public void input(String msg){
        System.out.println("dlc-default获取到的消息为：" + msg);
    }
}
